<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>CSS属性选择器</title>
    <style type="text/css">
        [title]{color:#d24215;}
        [title="attrselector"]{border: solid 1px #3444ff}
        [title~="attrselector"]{font-weight: 900;}
        [title|="attrselector"]{font-style: italic;}
    </style>
</head>
<body>
<h1 title="attrselector">CSS属性选择器</h1>
<h2 title="attr selector">CSS属性选择器</h2>
<p title="attr-selector">CSS属性选择器</p>
</body>
</html>